<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<script type="text/javascript">
	// date = new Date();
	// // document.write(date);
	// date=date.getTime();
	// document.write(date);
	//计算出目前到元旦还有几天几几小时分几秒
	nowDate = new Date();
	n=nowDate.getTime();
	yuanDate = new Date("2018-01-01")
	y=yuanDate.getTime();
	z=y-n;
	day1 = z/1000/60/60/24;
	day2 = Math.floor(day1);
	hours1=(day1-day2)*24;
	hours2=Math.floor(hours1);
	minte1 = (hours1-hours2)*60;
	minte2 =Math.floor(minte1);
	mao1 = (minte1-minte2)*60;
	mao2 = Math.round(mao1)
	document.write(day2+"天"+hours2+"小时"+minte2+"分"+mao2+"秒");



	</script>
	<title></title>
</head>
<body>
	
</body>
</html>